import scrapy
import json


class IndexSpider(scrapy.Spider):
    name = "vxinghe_list"
    allowed_domains = ["dmoz.org"]
    start_urls = [
        "http://vxinghe.com/news/c16.html?page=2&json=1"
    ]

    def parse(self, response):
        data = json.loads(response.body_as_unicode())
        for item in data:
            print(item['id'], item['title'])
            yield item